package com.zg.autoform.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zg.autoform.web.req.FormTablePageReq;
import com.zg.common.core.dao.autoform.DiyForm;
import com.zg.common.core.req.PageReq;

import java.util.List;
import java.util.Map;

/**
 * DESCRIPTION
 *
 * @author zhanfeng.liang
 * @since 2025-07-17
 */

public interface FormService {

    //获取所有的数据库表
    Page<Map<String,Object>> pageTable(FormTablePageReq req);

    //导入表的数据到form、form_column
    void importFromTable(String tableName);

    /**
     * 根据表名获取表信息
     * @param code
     * @return
     */
    DiyForm getByCode(String code);

}
